import { createApp } from 'vue'
import './style.css'
import 'ol/ol.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as Cesium from 'cesium'
import { installPinia } from '@/store'

async function startup() {
  Cesium.Ion.defaultAccessToken = import.meta.env.VITE_CESIUM_TOKEN
  const app = createApp(App)
  app.use(ElementPlus)
  await installPinia(app)
  app.mount('#app')
}

startup()
